package com.tit.safetycontacts.utils;

import android.app.Activity;
import android.view.Window;
import android.view.WindowManager;
//设置全屏
public class SetScreen {
	public static void setFullScreen(Activity activity) {
		activity.getWindow().requestFeature(Window.FEATURE_NO_TITLE);
		activity.getWindow().setFlags(
				WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
	}

	public static void setScreenNoTitle(Activity activity) {
		activity.getWindow().requestFeature(Window.FEATURE_NO_TITLE);
	}
}
